<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" th:href="@{/img/favicons/favicon.ico}">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
  </head>

  <body>

    <div th:insert="~{common/common::topbar}"></div>

    <div class="container-fluid">
      <div class="row">

        <div th:insert="~{common/common::sidebar(active='emps')}"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
          <form class="form-horizontal" th:action="@{/emp}" method="post">
            <div class="form-group">
              <label for="username" class="col-sm-2 control-label">姓名</label>
              <div class="col-sm-10">
                <input type="text" name="lastName" class="form-control" id="username" placeholder="username">
              </div>
            </div>
            <div class="form-group">
              <label for="email" class="col-sm-2 control-label">Email</label>
              <div class="col-sm-10">
                <input type="email" name="email" class="form-control" id="email" placeholder="email">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">性别</label>
              <div class="col-sm-10">
                <label class="radio-inline">
                  <input type="radio" name="gender" id="inlineRadio1" value="女">女
                </label>
                <label class="radio-inline">
                  <input type="radio" name="gender" id="inlineRadio2" value="男">男
                </label>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">部门</label>
              <div class="col-sm-10">
                <select name="department" class="form-control">
                  <option th:each="dept:${departments}" th:text="${dept.getDepartmentName()}" th:value="${dept.getId()}"></option>

                </select>
              </div>
            </div>
            <div class="form-group">
              <label for="birth" class="col-sm-2 control-label">生日</label>
              <div class="col-sm-10">
                <input type="date" name="birth" class="form-control" id="birth" placeholder="birthday">
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
              </div>
            </div>
          </form>
        </main>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script th:src="@{/js/vendor/jquery-slim.min.js}" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script th:src="@{../static/js/vendor/jquery-slim.min.js}"><\/script>')</script>
    <script th:src="@{/js/vendor/popper.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>

    <!-- Icons -->
    <script th:src="@{https://unpkg.com/feather-icons/dist/feather.min.js}"></script>
    <script>
      feather.replace()
    </script>


  </body>
</html>
